package com.leilbase.authshiro.exception;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class AuthExceptionHandler {


    @ExceptionHandler(value = UnauthorizedException.class)
    public String unauthExceptionHandler() {
        return "你没有权限访问该页面";
    }

}
